@import url(../plugin/layui/css/layui.css);
@import url('http://at.alicdn.com/t/font_2044956_kb2ip0efsy8.css');
@import url(widget);

@base-bg-color: #f5f6f7;
@white: #ffffff;
@position: {
  t: top;
  l: left;
  r: right;
  b: bottom;
};
//margin
@margin-list: 5, 10, 15, 20, 25, 30;
@ad-list: 60, 120, 300, 320, 450;
@percentage: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100;
@color: {
  danger: #FF5722;
  warning: #FFB800;
  success: #5FB878;
  info: #1E9FFF;
}

each(@color, {
  .text-@{key} {
    color: @value !important;
  }
});

each(@percentage, {
  .width-@{value} {
    width: @value*1% !important;
  }
  .height-@{value} {
    height: @value*1% !important;
  }
})

each(@ad-list, {
  .ad-box-@{value} {
    width: 100%;
    height: @value *1px;

    a {
      display: block;

      img {
        width: 100%;
        display: block;
        height: @value*1px;
      }
    }
  }
});
each(@margin-list, {
  .margin-t-@{value} {
    margin-top: @value*1px;
  }
  .margin-l-@{value} {
    margin-left: @value*1px;
  }
  .margin-r-@{value} {
    margin-right: @value*1px;
  }
  .margin-b-@{value} {
    margin-bottom: @value*1px;
  }
});

each(range(20), {
  .top-@{value} {
    color: #2D93CA;
    font-size: 19px;
    display: block;
    position: relative;

  }
});
each(range(3), {
  .top-icon-@{value} {
    display: block;
    position: absolute;
    height: 25px;
    width: 25px !important;
    top: 0;
    right: 0;
    left: -6px;
    bottom: 0;
    background-size: cover;
    background-image: url("../img/top-@{value}.svg");
  }
});
.flex {
  display: flex !important;
}

/*each(@position, {
  .border-@{key} {
    border-@{value}: 1px solid @base-bg-color;
  }
});*/

html, body {
  width: 100%;;
  margin: 0 auto;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

//容器大小
.container {
  width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bg-white {
  background-color: @white;
}

.base-bg {
  background-color: @base-bg-color;
}

.dblock {
  display: block !important;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
  background-color: #ff0000;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 50px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #e8e8e8;

  &:hover {
    background: rgba(3, 2, 2, 0.5);
  }
}

.f-left{
  float: left;
}
.f-right{
  float: right;
}
